Skip to content

Conversation

@JukkaL
Copy link
Collaborator

@JukkaL JukkaL commented Feb 5, 2025

Hopefully this makes this a little less confusing.

@JukkaL JukkaL requested a review from ilevkivskyi February 5, 2025 13:48
@github-actions

This comment has been minimized.

Copy link
Member

@ilevkivskyi ilevkivskyi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! Have just one suggestion.

or the result of isinstance checks. It also records whether it is
possible to reach that point at all.
or the result of isinstance checks and other type narrowing
operations. It also records whether it is possible to reach that
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can also mention that isinstance() etc. follow a more direct path via put(), while assignments have some additional special-casing and first go via assign_type().

@github-actions
Copy link
Contributor

github-actions bot commented Feb 6, 2025

According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅

@JukkaL JukkaL merged commit fc991a0 into master Feb 6, 2025
17 of 18 checks passed
@JukkaL JukkaL deleted the binder-docs branch February 6, 2025 15:42
x612skm pushed a commit to x612skm/mypy-dev that referenced this pull request Feb 24, 2025
Hopefully this makes this a little less confusing.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants